﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <stdlib.h>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void onNumberClicked();
    void onOperatorCliked();
    void onEqualsClicked();
    void onClearClicked();

private:
    int add(int a, int b);
    int sub(int a, int b);
    int mul(int a, int b);
    int div(int a, int b);

    Ui::Widget *ui;
};

#endif // WIDGET_H
